package com.bootdo.system.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.bootdo.system.domain.WxMsgDO;
import com.bootdo.system.service.WxMsgService;

@Controller
public class CNM {

	@Autowired
	private WxMsgService wxMsgService;
	
	@RequestMapping("/cnm")
	public String cnm(){
		
		try{
			WxMsgDO wxMsg = new WxMsgDO();
			wxMsg.setFromusername("sdf");
			wxMsg.setMsgContent("sdfsd3223132");
			wxMsgService.save(wxMsg); 
		}catch (Exception e) { 
			System.out.println("消息保存异常"+e);
		}
		return "cnm--emmmm";
	}
	
}
